// 宿舍
import request from '@/router/axios'

//展示表格
export function showDormList(query) {
    return request({
        url: '/campus/dorm/page',
        method: 'get',
        params:query
    })
}

//增加楼栋
export function addDorm(obj) {
    return request({
        url: '/campus/dorm',
        method: 'post',
        data: obj
    })
}

//编辑楼栋
export function editDorm(obj) {
    return request({
        url: '/campus/dorm',
        method: 'put',
        data: obj
    })
}

//删除楼栋
export function delDorm(id) {
    return request({
        url: '/campus/dorm/' + id,
        method: 'delete',
    })
}

//批量删除楼栋
export function deldorms(ids) {
    return request({
        url: '/campus/dorm/deleteBatch/' + ids,
        method: 'delete',
    })
}